package responsibilitychain;

/**
 * 抽象的审批者
 * @author Fengdong.Duan
 * @create 2023/12/5 14:44
 */
public abstract class Approver {
    protected String name;
    protected Approver next;
    public Approver(String name) {
        this.name = name;
    }

    // 设置下一个审批者
    void setNext(Approver approver) {
        this.next = approver;
    }

    abstract void handleRequest(PurchaseRequest request);
}
